package com.bwie.remote;

import com.bwie.common.domain.User;
import com.bwie.common.result.Result;
import com.bwie.remote.fallback.RemoteSysUserServiceFallback;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 系统用户远程
 *
 * @author liuwenliang
 * @version 1.0
 * @date 2025/9/9
 */
@FeignClient(value = "bwie-system" , fallbackFactory = RemoteSysUserServiceFallback.class)
public interface RemoteSysUserService {



    /**
     * 查询手机号是否存在
     * @param phone 手机号
     * @return 用户信息
     */
    @GetMapping("/sysUser/selectPhoneIsExist/{phone}")
    public Result<User> selectPhoneIsExist(@PathVariable("phone") String phone);

    /**
     * 短信息记录
     * @param user
     * @return
     */
    @PostMapping("/sysUser/addSmsRecord")
    public Result addSmsRecord (@RequestBody User user);
}
